﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class AspNet_PageControls_Grid_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            dgGrid1_Bind();
        }
    }

    private void dgGrid1_Bind()
    {
        DataTable dt = DAL.DBTestDAL.GetList(DAL.Conn.DataBaseName.MSPetShop4);
        dgGrid1.DataSource = dt;
        dgGrid1.DataBind();
    }
}